package com.example.demo.domain.equipment.repository;

import com.example.demo.domain.equipment.Equipment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface EquipmentRepository extends JpaRepository<Equipment,Integer> {
    /**
     * @Description: 获取全部设备
     * @Param:  无
     * @return:  全部票据列表
     * @Author: wangze
     */
    List<Equipment> getAllByTicketIdIsNotNull();

    List<Equipment> findByState(Integer id);

    Equipment findByTicketId(Integer id);
}
